/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entities;

import javax.swing.tree.DefaultMutableTreeNode;

/**
 *
 * @author ALIEN
 */
public class UrlNodeUserObject extends AdministrationTreeWrappingObject {
// url to show when a node is clicked
    private String url;
    private long id = -1;

    private boolean selected;

    public UrlNodeUserObject(DefaultMutableTreeNode wrapper) {
        super(wrapper);
    }

    /**
     * Gets the url value of this IceUserObject.
     *
     * @return string representing a URL.
     */
    public String getUrl() {
        return url;
    }

    /**
     * Sets the URL.
     *
     * @param url a valid URL with protocol information such as
     *            http://icesoft.com
     */
    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    /**
     * @return the id
     */
    public long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(long id) {
        this.id = id;
    }
}
